import request from '@/utils/request'

// 查询仓库码头列表
export function wharfList(query) {
  return request({
    url: '/system_setting/wharf/list',
    method: 'get',
    params: query
  })
}

// 查询仓库码头详细
export function getWharf(wharfId) {
  return request({
    url: '/system_setting/wharf/' + wharfId,
    method: 'get'
  })
}

// 新增仓库码头
export function addWharf(data) {
  return request({
    url: '/system_setting/wharf',
    method: 'post',
    data: data
  })
}

// 修改仓库码头
export function updateWharf(data) {
  return request({
    url: '/system_setting/wharf',
    method: 'put',
    data: data
  })
}

// 删除仓库码头
export function delWharf(wharfIds) {
  return request({
    url: '/system_setting/wharf/' + wharfIds,
    method: 'delete'
  })
}
